<?php
// 暂时没有写入文件修改功能
    header('Content-type:text/json');
    require "../../connection.php";
    try{
            $goods_name = $_POST['goods_name'];
            $goods_price = $_POST['goods_price'];
            $goods_label = $_POST['label'];
            $goods_categoryid = $_POST['categoryid'];
            $goods_engname = $_POST['engname'];
            $goods_tomarkettime = $_POST['tomarkettime'];
            $goods_publishtime = $_POST['publishtime'];
            $goods_studio = $_POST['goods_studio'];
            $goods_filesize = $_POST['filesize'];
            $goods_language = $_POST['language'];
            $goods_describe = $_POST['describe'];
            $goods_runsystem = $_POST['runsystem'];
            $goods_buysum = $_POST['buysum'];
            $goods_status = $_POST['status'];
            $id = $_POST['id'];
            $arr = array("goods_name"=>$goods_name,"goods_price"=>$goods_price,"goods_categoryid"=>$goods_categoryid,
                          "goods_engname"=>$goods_engname,"goods_tomarkettime"=>$goods_tomarkettime,"goods_publishtime"=>$goods_publishtime,
                          "goods_studio"=>$goods_studio,"goods_filesize"=>$goods_filesize,"goods_language"=>$goods_language,
                          "goods_runsystem"=>$goods_runsystem,"goods_buysum"=>$goods_buysum,"goods_label"=>$goods_label,
                          "goods_describe"=>$goods_describe,"goods_status"=>$goods_status
                          );
            $option = array("id"=>$id);
            $result = $conn->where($option)->update("goods",$arr);
            if($result){
                $msg = "更新成功";
            }else{
                $msg = "更新失败";
            }
            $data = array("status"=>"1","msg"=>$msg);
            echo json_encode($data);
    }catch(Exception $e){
        print_r($e->getMessage());
    }



?>